package cn.gok.common.resp;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author: DxlinY
 * @apiNote: 分页dto
 * @date: 2020/9/27
 * @time: 15:33
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class PageResult extends Result {
    private long count;

    public PageResult(Result result, long count) {
        this.code = result.code;
        this.msg = result.msg;
        this.data = result.data;
        this.count = count;
    }
}
